Microsoft® Visual Basic® Scripting Edition
Len Function
Language Reference

See Also


Description
Returns the number of characters in a string or the number of bytes required to store a variable.
Syntax
Len(string | varname)

The Len function syntax has these parts:

PartDescription
stringAny valid string expression. If string contains Null, Null is returned.

varnameAny valid variable name. If varname contains Null, Null is returned.

Remarks


Note  Another function (LenB) is provided for use with byte data contained in a string. Instead of returning the number of characters in a string, LenB returns the number of bytes used to represent that string.


© 1997 Microsoft Corporation. All rights reserved. Legal Notices.